﻿namespace Sgr.DataCategories
{
    /// <summary>
    /// 行政区划
    /// </summary>
    public class AdmDiv
    {
        /// <summary>
        /// 唯一标识
        /// </summary>
        public string Id { get; set; } = string.Empty;

        /// <summary>
        /// 父级行政区划Id
        /// </summary>
        public string Pid { get; set; } = string.Empty;

        /// <summary>
        /// 行政区划编码
        /// </summary>
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 行政区划名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 是否有子节点
        /// </summary>
        public bool HasChild { get; set; } = false;

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsActive { get; set; } = false;
    }
}